package com.csg.ses.dao.ses;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.csg.ses.entity.ses.NewsInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 
 * @author zhanggongrong
 * @date 2021-04-05 14:18:22
 */
@Mapper
public interface NewsInfoDao extends BaseMapper<NewsInfoEntity> {
    IPage<NewsInfoEntity> retrieve(IPage<NewsInfoEntity> page, @Param(Constants.WRAPPER) Wrapper<NewsInfoEntity> qw);
    Integer getNextId();
    List<NewsInfoEntity> getAllNews();
}